import React, { Component } from 'react'
import {Route, Switch, NavLink} from 'react-router-dom';
import Message from '../Message';
import News from '../News';

export default class About extends Component {
    render() {
        return (
            <div className="panel">
                <div className="panel-body">
                    <h3>我是 Home 的内容</h3>
                    <div>
                        <ul className="nav nav-tabs">
                            <li>
                                <NavLink className="list-group-item" to="/home/news" >新闻</NavLink>
                            </li>
                            <li>
                                <NavLink className="list-group-item" to="/home/message" >信息</NavLink>
                            </li>
                        </ul>
                        <Switch>
                            <Route path="/home/news" component={News} />
                            <Route path="/home/message" component={Message} />
                        </Switch>
                    </div>
                </div>
            </div>
        )
    }
}
